/**
 * 
 */
package com.wixc.entity;

/**
 * @author weichuanxi
 * @date 2016年3月1日
 */
public class Model implements Comparable<Model>{
	private String detail;
	private String name;
	private int id;
	private int typeid;
	/**
	 * @return the detail
	 */
	public String getDetail() {
		return detail;
	}
	/**
	 * @param detail the detail to set
	 */
	public void setDetail(String detail) {
		this.detail = detail;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the priceInfo
	 */
	public int getPriceInfo() {
		return id;
	}
	/**
	 * @param priceInfo the priceInfo to set
	 */
	public void setPriceInfo(int priceInfo) {
		this.id = priceInfo;
	}
	
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * @return the typeid
	 */
	public int getTypeid() {
		return typeid;
	}
	/**
	 * @param typeid the typeid to set
	 */
	public void setTypeid(int typeid) {
		this.typeid = typeid;
	}
	@Override
	public String toString() {
		return "HouseModel [detailUrl=" + detail + ", name=" + name + ", priceInfo=" + id + "]";
	}
	public int compareTo(Model o) {
		return  this.getPriceInfo()-(o.getPriceInfo());
	}
	/**
	 * @param detail
	 * @param name
	 * @param id
	 */
	public Model(int id,String name, String detail ) {
		super();
		this.detail = detail;
		this.name = name;
		this.id = id;
	}
	/**
	 * 
	 */
	public Model() {
		super();
	}
	
	
}
